import turtle

# 设置画笔
pen = turtle.Turtle()
pen.color('red')
pen.speed(5)
pen.begin_fill()

# 绘制心形
pen.left(140)
pen.forward(224)
for _ in range(200):
    pen.right(1)
    pen.forward(2)
pen.left(120)
for _ in range(200):
    pen.right(1)
    pen.forward(2)
pen.forward(224)

pen.end_fill()
turtle.done()  # 保持窗口打开